<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />

<head>

    <style>

    </style>
</head>
<title>空间</title>
<link rel="stylesheet" href="../common.css/common.css">
<!-- <link rel="stylesheet" href="../common.css/reset.css"> -->
<link rel="stylesheet" href="../fonts/iconfont.css">
<link rel="stylesheet" href="">

<body>
    <header>
        <div class="box">

            <div class="search">
                <span class="iconfont icon-sousuo sousuo"></span>
                <input placeholder="搜索您感兴趣的内容" type="text">
            </div>
            <span class="iconfont icon--weiguanzhurenxinxisixinxiaoxizhongxin" style="font-size: 0.5rem"></span>
        </div>

    </header>


    <section>



    </section>
    <footer>
        <figure>
            <span class="iconfont icon-shouye"></span>
            <figcaption>首页</figcaption>
        </figure>
        <figure>
            <span class="iconfont icon-tupian"></span>
            <figcaption>看图</figcaption>
        </figure>
        <figure>
            <span class="iconfont  icon-add-fill jia"></span>
            <figcaption></figcaption>
        </figure>
        <figure>
            <span class="iconfont icon-zhuangxiu"></span>
            <figcaption>装修</figcaption>
        </figure>
        <figure>
            <span class="iconfont icon-wode"></span>
            <figcaption>我的</figcaption>
        </figure>
    </footer>
    <script>
        window.onload = function() {
            /*720代表设计师给的设计稿的宽度，你的设计稿是多少，就写多少;100代表换算比例，这里写100是
                              为了以后好算,比如，你测量的一个宽度是100px,就可以写为1rem,以及1px=0.01rem等等*/
            getRem(750, 100)
        };
        window.onresize = function() {
            getRem(750, 100)
        };

        function getRem(pwidth, prem) {
            var html = document.getElementsByTagName("html")[0];
            var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
            html.style.fontSize = oWidth / pwidth * prem + "px";
        }
    </script>
</body>

</html>